package com.hjh.netty.elect.demo5;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(1)
@Component
public class Pmc350DevTcpApplicationRunner implements CommandLineRunner {

    @Autowired
    private Pmc350DevTcpServer pmc350DevTcpServer;

    @Override
    public void run(String... args) throws Exception {
        pmc350DevTcpServer.start();
    }
}